package cn.kickegg.cluster.provider.service;

import cn.kickegg.cluster.uid.api.UidGeneratorService;
import com.github.yitter.idgen.YitIdHelper;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author chenkai
 * @createTime 2024/1/8 11:45
 * @description
 * @keyPoint
 */
@DubboService
public class UidGeneratorServiceImpl implements UidGeneratorService {

    @Override
    public Long getSnowflakeId() {
        return YitIdHelper.nextId();
    }
}
